package com.routz.nettydemo.customprotocol.entity;

import com.routz.nettydemo.customprotocol.util.Constant;

/**
 * 脚环数据包 620 byte
 *  数据包头
 *      开始字节 0x21
 *      命令类型 0x40
 *      总共包数 0x01
 *      本包编号 0x01
 *      结束标志 0x01
 *      卡号后5位
 *  脚环数据
 *      脚环编号 4byte
 *      保留字
 *      步数   3byte
 *      温度
 *      电压 距离
 *  数据包尾
 *      保留字 6byte
 *      脚环数目
 *      结束字节 0x2f
 *      校验和 2byte
 */
public class BraceletDataPacket {
    private PacketHead packetHead;
    private BraceletData[] braceletDatas = new BraceletData[Constant.BraceletDataSize];
    private PacketTail packetTail;

    public BraceletDataPacket() {
    }

    public BraceletDataPacket(PacketHead packetHead, BraceletData[] braceletDatas, PacketTail packetTail) {
        this.packetHead = packetHead;
        this.braceletDatas = braceletDatas;
        this.packetTail = packetTail;
    }

    public PacketHead getPacketHead() {
        return packetHead;
    }

    public void setPacketHead(PacketHead packetHead) {
        this.packetHead = packetHead;
    }

    public BraceletData[] getBraceletDatas() {
        return braceletDatas;
    }

    public void setBraceletDatas(BraceletData[] braceletDatas) {
        this.braceletDatas = braceletDatas;
    }

    public PacketTail getPacketTail() {
        return packetTail;
    }

    public void setPacketTail(PacketTail packetTail) {
        this.packetTail = packetTail;
    }
}
